package com.alex.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.alex.cms.domain.CmsComment;
import com.alex.cms.web.vo.CommentVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

/**
 * <p>
 * 用户评论表 Mapper 接口
 * </p>
 *
 * @author alex
 * @since 2019-09-17
 */
public interface CmsCommentMapper extends BaseMapper<CmsComment> {
	public List<CommentVo> selectAllCommentsByUserId(@Param(Constants.WRAPPER)QueryWrapper<CommentVo> queryWrapper);

	public IPage<CommentVo> selectAllCommentsByPage(IPage<CommentVo> page, @Param(Constants.WRAPPER)QueryWrapper<CommentVo> queryWrapper);
}
